<html>
<head><meta charset="utf-8"><title>allocs referenced by MemPlace · t-compiler/wg-mir-opt · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/index.html">t-compiler/wg-mir-opt</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/allocs.20referenced.20by.20MemPlace.html">allocs referenced by MemPlace</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="171212932"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/allocs%20referenced%20by%20MemPlace/near/171212932" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alexander Regueiro <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/allocs.20referenced.20by.20MemPlace.html#171212932">(Jul 18 2019 at 22:02)</a>:</h4>
<p>Is there any function/method that gets all the memory allocations referenced (directly or transitively) by a <code>MemPlace</code>? I suppose I could adapt <code>dump_allocs</code>, but it would take a bit of effort...</p>



<a name="171230577"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/allocs%20referenced%20by%20MemPlace/near/171230577" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/allocs.20referenced.20by.20MemPlace.html#171230577">(Jul 19 2019 at 05:13)</a>:</h4>
<p>No there's no convenience function</p>



<a name="171230580"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/allocs%20referenced%20by%20MemPlace/near/171230580" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/allocs.20referenced.20by.20MemPlace.html#171230580">(Jul 19 2019 at 05:13)</a>:</h4>
<p>Splitting <code>dump_allocs</code> seems like the right thing to do</p>



<a name="171248918"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/allocs%20referenced%20by%20MemPlace/near/171248918" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/allocs.20referenced.20by.20MemPlace.html#171248918">(Jul 19 2019 at 11:19)</a>:</h4>
<p>what do you need that information for?</p>



<a name="171272605"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/allocs%20referenced%20by%20MemPlace/near/171272605" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alexander Regueiro <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/allocs.20referenced.20by.20MemPlace.html#171272605">(Jul 19 2019 at 16:40)</a>:</h4>
<p><span class="user-mention" data-user-id="124288">@oli</span> thought so, thanks.</p>



<a name="171272630"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/allocs%20referenced%20by%20MemPlace/near/171272630" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alexander Regueiro <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/allocs.20referenced.20by.20MemPlace.html#171272630">(Jul 19 2019 at 16:40)</a>:</h4>
<p><span class="user-mention" data-user-id="120791">@RalfJ</span> crazy hackery I'm doing working on a MIR REPL :-P</p>



<a name="171323124"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/allocs%20referenced%20by%20MemPlace/near/171323124" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/allocs.20referenced.20by.20MemPlace.html#171323124">(Jul 20 2019 at 11:07)</a>:</h4>
<p>oh my god okay I will stop asking :P</p>



<a name="171329555"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/allocs%20referenced%20by%20MemPlace/near/171329555" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alexander Regueiro <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/allocs.20referenced.20by.20MemPlace.html#171329555">(Jul 20 2019 at 14:29)</a>:</h4>
<p>haha yeah. I'll link you when I have something fully working, if you're curious (and want to be horrified)... for now very much a WIP, though some important parts already done.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>